<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue指令2</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="add">
        <input type="button" value="点我一下" v-on:click="bt1()">
        &nbsp;&nbsp;
        <input type="button" value="点我一下" @click="bt2()">
    </div>
</body>
<script>
    new Vue({
        el:"#add",
        methods: {
            bt1:function(){
                alert("你虎啊，让你点你就点?");
            },
            bt2:function(){
                alert("皮?????");
            }
        }
    })
</script>
</html>